﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Security;
using System.Security.Principal;
using System.Threading;
using System.Runtime.InteropServices;
using Tools;
using MtwControl;

namespace Mtw_pc
{
    class MtwMain
    {
        private static Log log;
        static void Main(string[] args)
        {
            
            MtwMain mtwMain = new MtwMain();
            KeyObject keyObj = new KeyObject();
            MouseObject mouseObj = new MouseObject();
            log.info("start sever");
            Thread.Sleep(3000);
            for (int i = 0; i < 20; i++)
            {
                keyObj.excute("65-ACTION_DOWN");
                keyObj.excute("65-ACTION_UP");
                mouseObj.excute("MouseMove-X:3.0802612-Y:-4.850281");
                Thread.Sleep(1000);
            }
           
            Console.Read();
        }
        /// <summary>
        /// 构造函数，初始化log
        /// </summary>
        public MtwMain()
        {
            log = new Log(this);
        }
    }
}
